package com.i2works.smartluolong.utils.plugin;

import java.util.List;

/**
 * solr工具类
 *
 * @author Liu Yutao koal@vip.qq.com
 * @date 2016/11/4 21:30
 */

public class SolrPager<T> {

    private Integer pageNum;    //当前页号
    private Integer pageSize;   //分页数
    private Integer total;      //总部条数
    private List<T> beans;

    public SolrPager(Integer pageNum, Integer pageSize, Integer total, List<T> beans) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.beans = beans;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getBeans() {
        return beans;
    }

    public void setBeans(List<T> beans) {
        this.beans = beans;
    }
}
